package org.atlantis.grosbeak.lang.testbean;

import org.atlantis.grosbeak.lang.Strings;

public class MemberFactoryMethod {

	private String name = "sne";

	private Object[] info = new Object[] { "man", 22, true };

	private MemberFactoryMethod() {
	}

	private MemberFactoryMethod(String name) {
		this.name = name;
	}

	private MemberFactoryMethod(String name, Object[] info) {
		this.name = name;
		this.info = info;
	}

	public static MemberFactoryMethod instance() {
		return new MemberFactoryMethod();
	}

	public static MemberFactoryMethod instance(String name) {
		return new MemberFactoryMethod("FM" + name);
	}

	public static MemberFactoryMethod instance(String name, Object[] info) {
		return new MemberFactoryMethod("FM" + name, info);
	}
	
	public String getResult() {
		return name + Strings.join(info);
	}
}
